/**
 * 
 */
package com.youth.fund.hk.hostManager.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.youth.fund.hk.hostManager.common.dao.ICommonDao;
import com.youth.fund.hk.hostManager.common.service.impl.CommonService;
import com.youth.fund.hk.hostManager.manager.dao.InformationDao;
import com.youth.fund.hk.hostManager.manager.datamodel.InformationModel;
import com.youth.fund.hk.hostManager.manager.service.NewsService;
import com.youth.fund.hk.hostManager.thymeleaf.service.ThymeleafService;

/**
 * @author Sunk_Sky
 *
 * 2014年11月12日下午8:53:19
 */
@Service("NewsService")
public class NewsServiceImpl extends CommonService<InformationModel> implements NewsService
{
	private InformationDao dao;
	
	@Autowired
	@Qualifier("ThymeleafService")
	private ThymeleafService thymeleafService;
	/* (non-Javadoc)
	 * @see com.youth.fund.hk.hostManager.common.service.impl.CommonService#setCommonDao(com.youth.fund.hk.hostManager.common.dao.ICommonDao)
	 */
	@Autowired
	@Qualifier("InformationDao")
	@Override
	public void setCommonDao(ICommonDao<InformationModel> commonDao)
	{
		this.commonDao = commonDao;
		
		this.dao = (InformationDao)commonDao;
	}
	/* (non-Javadoc)
	 * @see com.youth.fund.hk.hostManager.common.service.impl.CommonService#generateHtml(java.io.Serializable)
	 */
	@Override
	public void generateHtml(InformationModel model)
	{
		// TODO Auto-generated method stub
		
	}
	/* (non-Javadoc)
	 * @see com.youth.fund.hk.hostManager.manager.service.NewsService#searchPage(com.youth.fund.hk.hostManager.manager.datamodel.InformationModel, com.github.miemiedev.mybatis.paginator.domain.PageBounds)
	 */
	@Override
	public List<InformationModel> searchPage(InformationModel model,
			PageBounds bound)
	{
		return this.dao.pageQuery(model, bound);
	}

	
}
